﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class LoanListModel
    {
        public List<LoanItemModel> LoanList { get; set; }

        public string SelectedBranchCode { get; set; }

        [Display(Name = "Search text")]
        public string SearchText { get; set; }

        [Display(Name="Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

    }

    public class LoanItemModel
    {
        public string EditLoanStyle { get; set; }

        public LoanItem LoanItem { get; set; }
    }

    public class LoanItem: LoanQueryModel
    { }

}